import {
  tabPosition
} from "@/utils/js/tab.js";
import {
  resizeWindow
} from "@/utils/js/window.js";
import {
  request
} from "@/utils/js/share.js";
$(function () {
  resizeWindow('meiguogaokao');
  var tabHeight = $('#tab').height();
  var domList = ['#section1', '#section2', '#section3', '#section4', '#section5', '#section6', '#section7', '#section8'];
  var domHeightList = [];
  tabPosition(domList, domHeightList, tabHeight);

  new Swiper(".swiper-container1", {
    pagination: ".swiper-pagination1",
    slidesPerView: document.documentElement.clientWidth> 979 ? 2 : 1
  });
  new Swiper(".swiper-container2", {
    pagination: ".swiper-pagination2"
  });
  new Swiper(".swiper-container3", {
    pagination: ".swiper-pagination3",
    slidesPerView: 2
  });

  $(".se-tab").click(function () { 
    $(this).addClass("se-active").siblings().removeClass("se-active");
    $(".se-list").eq($(this).index()).addClass("se-list-active").siblings().removeClass("se-list-active")
   })

  request({
    title: "高考后美国留学申请指南-新航道前程留学",
    desc: "高考成绩不好能去美国留学吗？一般到了6月份，学生会得知自己的高考成绩，新航道前程留学建议高考生们理想的状态是做两手准备，高考要参加，同时也要着手准备美国留学，上美国大学你有N种方案可供选择？不了解的来找新航道前程留学吧！"
  })
})